if (Tabpackege.getServerVersion().equalsIgnoreCase("v1_8_R2") || Tabpackege.getServerVersion().equalsIgnoreCase("v1_8_R3")) {
                Object header = Tabpackege.getNmsClass("IChatBaseComponent$ChatSerializer").getMethod("a", new Class[]{String.class}).invoke(null, new Object[]{"{'text': '" + msg1 + "'}"});
                Object footer = Tabpackege.getNmsClass("IChatBaseComponent$ChatSerializer").getMethod("a", new Class[]{String.class}).invoke(null, new Object[]{"{'text': '" + msg2 + "'}"});
                Object ppoplhf = Tabpackege.getNmsClass("PacketPlayOutPlayerListHeaderFooter").getConstructor(new Class[]{Tabpackege.getNmsClass("IChatBaseComponent")}).newInstance(new Object[]{header});
                Field f = ppoplhf.getClass().getDeclaredField("b");
                f.setAccessible(true);
                f.set(ppoplhf, footer);
                Object nmsp = p.getClass().getMethod("getHandle", new Class[0]).invoke((Object)p, new Object[0]);
                Object pcon = nmsp.getClass().getField("playerConnection").get(nmsp);
                pcon.getClass().getMethod("sendPacket", new Class[]{Tabpackege.getNmsClass("Packet")}).invoke(pcon, new Object[]{ppoplhf});
            } e if (Tabpackege.getServerVersion().equalsIgnoreCase("v1_8_R2") || Tabpackege.getServerVersion().equalsIgnoreCase("v1_8_R3")) {
                                Object header = Tabpackege.getNmsClass("IChatBaseComponent$ChatSerializer").getMethod("a", new Class[]{String.class}).invoke(null, new Object[]{"{'text': '" + msg1 + "'}"});
                                                Object footer = Tabpackege.getNmsClass("IChatBaseComponent$ChatSerializer").getMethod("a", new Class[]{String.class}).invoke(null, new Object[]{"{'text': '" + msg2 + "'}"});
                                                                Object ppoplhf = Tabpackege.getNmsClass("PacketPlayOutPlayerListHeaderFooter").getConstructor(new Class[]{Tabpackege.getNmsClass("IChatBaseComponent")}).newInstance(new Object[]{header});
                                                                                Field f = ppoplhf.getClass().getDeclaredField("b");
                                                                                                f.setAccessible(true);
                                                                                                                f.set(ppoplhf, footer);
                                                                                                                                Object nmsp = p.getClass().getMethod("getHandle", new Class[0]).invoke((Object)p, new Object[0]);
                                                                                                                                                Object pcon = nmsp.getClass().getField("playerConnection").get(nmsp);
                                                                                                                                                                pcon.getClass().getMethod("sendPacket", new Class[]{Tabpackege.getNmsClass("Packet")}).invoke(pcon, new Object[]{ppoplhf});
            } 
            }